package com.ghp.admin.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ghp.admin.mapper.UserInterfaceInfoMapper;
import com.ghp.admin.service.UserInterfaceInfoService;
import com.ghp.common.model.entity.UserInterfaceInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author ghp
* @description 针对表【tb_user_interface_info(用户接口关系表)】的数据库操作Service实现
* @createDate 
*/
@Service
public class UserInterfaceInfoServiceImpl extends ServiceImpl<UserInterfaceInfoMapper, UserInterfaceInfo>
    implements UserInterfaceInfoService {

    @Resource
    private UserInterfaceInfoMapper userInterfaceInfoMapper;

    /**
     * 查询接口调用次数前 limit 的接口
     *
     * @param limit
     * @return
     */
    @Override
    public List<UserInterfaceInfo> listTopInvokeInterfaceInfo(int limit) {
        return userInterfaceInfoMapper.listTopInvokeInterfaceInfo(limit);
    }
}




